package testCasalib 
{
	import flash.text.StyleSheet;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;
	import org.casalib.display.CasaMovieClip;
	import org.casalib.util.TextFieldUtil;
	
	/**
	 * ...
	 * @author ...
	 */
	public class textfield_ extends CasaMovieClip 
	{
		
		public function textfield_() 
		{
			var small:TextFormat = new TextFormat();
			var large:TextFormat = new TextFormat();

			small.size = 15;
			large.size = 30;

			var title:TextField = new TextField();
			title.autoSize      = TextFieldAutoSize.LEFT;
			title.text          = "This Text is Small Caps.";
			title.setTextFormat(small);

			TextFieldUtil.formatSmallCaps(title, large);

			this.addChild(title);
		}
		
	}

}